package com.lord.label.domain;

import java.util.Date;

import org.hibernate.validator.constraints.NotEmpty;

import com.lord.label.base.BaseBean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 
 * @Description: 规则实体
 * @author Lord
 * @date 2017年5月23日 上午9:10:54
 */
public class Rule extends BaseBean{
	
	private static final long serialVersionUID = -4868685499756284663L;

	/** 链接地址. */
    private String url;

    /** 网站标识. */
    private String webSite;

    /** 网站名称. */
    private String siteName;

    /** 正文属性值. */
    @NotBlank(message="{正文属性不能为空}")
    private String textAttribute;

    /** 创建时间. */
    private Date gmtCreate;

    /** 修改时间. */
    private Date gmtModified;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getWebSite() {
        return webSite;
    }

    public void setWebSite(String webSite) {
        this.webSite = webSite == null ? null : webSite.trim();
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName == null ? null : siteName.trim();
    }

    public String getTextAttribute() {
        return textAttribute;
    }

    public void setTextAttribute(String textAttribute) {
        this.textAttribute = textAttribute == null ? null : textAttribute.trim();
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}